package com.el.loggers;

import java.io.FileWriter;
import java.io.IOException;

import com.el.logger.ELogger;
import com.el.logger.EventLogEntry;

public class FlatFileELogger extends ELogger {

    private static final int BUFFER_MAX_SIZE = 1000;

    private FileWriter out;

    @Override
    public void log(EventLogEntry logEntry) {
//        try {
////            out.write(logEntry);
////            out.flush();
//        } catch (IOException e) {
//            e.printStackTrace();
//        }

    }

    @Override
    public void init() {
        try {
            out = new FileWriter("test_log.txt");
        } catch (IOException e) {
            e.printStackTrace();
        }

    }

    @Override
    public void close() {
        try {
            out.close();
        } catch (IOException e) {
            e.printStackTrace();
        }

    }

}
